package com.ibeetl.cms.service;


import com.ibeetl.admin.core.service.CoreBaseService;
import com.ibeetl.admin.core.util.PlatformException;
import com.ibeetl.cms.dao.XxdStatisticsDao;
import com.ibeetl.cms.entity.XxdItem;
import com.ibeetl.cms.entity.XxdStatistics;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional
public class XxdStatisticsService extends CoreBaseService<XxdItem>{

    @Autowired private XxdStatisticsDao xxdStatisticsDao;


    public List<XxdStatistics> queryByCondition(){
        List<XxdStatistics> list =  xxdStatisticsDao.queryByCondition();
        return list;
    }

    public void insert(){
        try {
            xxdStatisticsDao.insert();
        } catch (Exception e) {
            throw new PlatformException("统计失败", e);
        }
    }

}